import 'package:flutter/material.dart';

import 'package:get/get.dart';
import '../../../../services/screebAdapter.dart';
import '../controllers/address_add_controller.dart';
// import 'package:city_pickers/city_pickers.dart';

class AddressAddView extends GetView<AddressAddController> {
  const AddressAddView({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color.fromRGBO(247, 247, 247, 1),
      appBar: AppBar(
        title: const Text('新建收货地址'),
        centerTitle: true,
        backgroundColor: Colors.white,
        elevation: 0,
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(bottom: ScreenAdapter.height(20)),
            decoration: BoxDecoration(
                color: Colors.white,
                border: Border(
                    top: BorderSide(
                        color: Colors.black12, width: ScreenAdapter.width(1)))),
            padding: EdgeInsets.all(ScreenAdapter.width(40)),
            child: Column(
              children: [
                Container(
                  decoration: BoxDecoration(
                      border: Border(
                          bottom: BorderSide(
                              color: Colors.black12,
                              width: ScreenAdapter.width(1)))),
                  alignment: Alignment.center,
                  height: ScreenAdapter.height(140),
                  width: double.infinity,
                  child: Row(
                    children: [
                      Text(
                        '姓名',
                        style: TextStyle(fontSize: ScreenAdapter.fontSize(40)),
                      ),
                      Expanded(
                          flex: 1,
                          child: TextField(
                            decoration: InputDecoration(
                                hintText: '请输入姓名',
                                hintStyle: TextStyle(
                                    fontSize: ScreenAdapter.fontSize(40)),
                                border: OutlineInputBorder(
                                    borderSide: BorderSide.none)),
                          ))
                    ],
                  ),
                ),
                Container(
                  decoration: BoxDecoration(
                      border: Border(
                          bottom: BorderSide(
                              color: Colors.black12,
                              width: ScreenAdapter.width(1)))),
                  alignment: Alignment.center,
                  height: ScreenAdapter.height(140),
                  width: double.infinity,
                  child: Row(
                    children: [
                      Text(
                        '电话',
                        style: TextStyle(fontSize: ScreenAdapter.fontSize(40)),
                      ),
                      Expanded(
                          flex: 1,
                          child: TextField(
                            decoration: InputDecoration(
                                hintText: '收件人电话',
                                hintStyle: TextStyle(
                                    fontSize: ScreenAdapter.fontSize(40)),
                                border: OutlineInputBorder(
                                    borderSide: BorderSide.none)),
                          ))
                    ],
                  ),
                )
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(bottom: ScreenAdapter.height(20)),
            decoration: BoxDecoration(
                color: Colors.white,
                border: Border(
                    top: BorderSide(
                        color: Colors.black12, width: ScreenAdapter.width(1)))),
            padding: EdgeInsets.all(ScreenAdapter.width(40)),
            child: Column(
              children: [
                Container(
                  decoration: BoxDecoration(
                      border: Border(
                          bottom: BorderSide(
                              color: Colors.black12,
                              width: ScreenAdapter.width(1)))),
                  alignment: Alignment.center,
                  height: ScreenAdapter.height(140),
                  width: double.infinity,
                  child: Row(
                    children: [
                      Text(
                        '所在地区',
                        style: TextStyle(fontSize: ScreenAdapter.fontSize(40)),
                      ),
                      Expanded(
                          flex: 1,
                          child: TextField(
                            decoration: InputDecoration(
                                hintText: '选择地区信息',
                                hintStyle: TextStyle(
                                    fontSize: ScreenAdapter.fontSize(40)),
                                border: OutlineInputBorder(
                                    borderSide: BorderSide.none)),
                          ))
                    ],
                  ),
                ),
                Container(
                  decoration: BoxDecoration(
                      border: Border(
                          bottom: BorderSide(
                              color: Colors.black12,
                              width: ScreenAdapter.width(1)))),
                  alignment: Alignment.center,
                  height: ScreenAdapter.height(140),
                  width: double.infinity,
                  child: Row(
                    children: [
                      Text(
                        '详细地址',
                        style: TextStyle(fontSize: ScreenAdapter.fontSize(40)),
                      ),
                      Expanded(
                          flex: 1,
                          child: TextField(
                            decoration: InputDecoration(
                                hintText: '小区，楼牌号等',
                                hintStyle: TextStyle(
                                    fontSize: ScreenAdapter.fontSize(40)),
                                border: OutlineInputBorder(
                                    borderSide: BorderSide.none)),
                          ))
                    ],
                  ),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
